﻿using System;

namespace Firefly.ExtensionMethods
{
    public static class FloatExtensions
    {
        public static float ConvertEndian(this float obj)
        {
            byte[] bytes;
            bytes = BitConverter.GetBytes(obj);
            Array.Reverse(bytes);
            return BitConverter.ToSingle(bytes, 0);
        }
    }
}